<?php
/**
 * @author Arsene Tochemey GANDOTE<arsene.gandote@yahoo.com>
 * @access public
 * @version 1.0
 * @copyright (c) 2011 - Tochemey. You are free to use this class.
 * 				  Modify it the way you want it.
 * 				  Please let me know about any modifications done.
 */
# Instance of Role Model
$roleObj =  ClassRegistry::init('Role');
# List of all the roles in the system
$roles = $roleObj->find('all', array('recursive' => -1, 'order' => 'Role.role_name ASC'));
?>
<!-- navigation bar-->
   <div id="role-form-window" style="display: none;">
		<div class="role-settings-prompt" ></div>
		<form id="role-form" class="role-form" name="account-form" >
		<div class="row-2">
			<div>
				 <dl>
						<dt>User Name</dt>
						<dt><input type="text" name="username" id="username" readonly="readonly" /></dt>
						<dt>User Current Role</dt>
						<dt><input type="text" name="current-role" id="current-role"  readonly="readonly"/></dt>
						<dt>Choose the new Role</dt>
						<dt><select id="role-id" name="role-id">
									  <?php
										 if(!empty($roles)){
												foreach($roles as $role){
									  ?>
                                                              <option value="<?php echo $role['Role']['id']; ?>"><?php echo $role['Role']['role_name']; ?></option>
									  <?php
												}
										 }
									  ?>
							   </select></dt>
				 </dl>
			</div>
		</div>
                   <input type="hidden" id="user-id" name="user-id" value="" />
		</form>
   </div>
 